package com.sunseagear.wind.modules.monitor.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sunseagear.common.base.mvc.entity.AbstractEntity;
import com.sunseagear.wind.common.utils.excel.annotation.ExcelField;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 *
 * @version V1.0
 * @package com.sunseagear.bbs.modules.sys.entity
 * @title: 登陆日志实体
 * @description: 登陆日志实体
 * @author: sys * @date: 2018-09-28 11:31:36
 * @copyright: 2018 www.sunseagear.com Inc. All rights reserved.
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_login_log")
@SuppressWarnings("serial")
public class LoginLog extends AbstractEntity<Long> {

    /**
     * 访问ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 登录账号
     */
    @ExcelField(title = "登录账号", sort = 1)
    @TableField(value = "login_name")
    private String loginName;
    /**
     * 登录IP地址
     */
    @TableField(value = "login_ip")
    @ExcelField(title = "登录IP", sort = 2)
    private String loginIp;
    /**
     * 登录地点
     */
    @ExcelField(title = "登录地点", sort = 3)
    @TableField(value = "login_location")
    private String loginLocation;
    /**
     * 浏览器类型
     */
    @ExcelField(title = "浏览器类型", sort = 4)
    @TableField(value = "browser")
    private String browser;
    /**
     * 操作系统
     */
    @ExcelField(title = "操作系统", sort = 5)
    @TableField(value = "os")
    private String os;
    /**
     * 登录状态（1成功 -1失败）
     */
    @ExcelField(title = "操作系统", sort = 6)
    @TableField(value = "status")
    private String status;
    /**
     * 提示消息
     */
    @ExcelField(title = "提示消息", sort = 7)
    @TableField(value = "msg")
    private String msg;
    /**
     * 访问时间
     */
    @ExcelField(title = "操作时间", sort = 8)
    @TableField(value = "login_time")
    private Date loginTime;

    private String tenantId;


}
